/**
 * sysTradeLogService
 * 项目名称:分秒金融
 *
 * @author lunli
 *
 * 功能描述:平台交易管理
 * 
 * 历史版本:2017-05-09 v1.0.0 lunli  创建:
 * 
 */
package com.fmjr.sys.sysTradeLog.service;

import com.fmjr.common.base.exception.BusinessException;
import com.fmjr.common.base.util.Pager;
import com.fmjr.sys.sysTradeLog.bean.SysTradeLog;

import java.math.BigDecimal;


public interface ISysTradeLogService{

	/**
	 * 根据条件查询平台交易记录
	 * @author lunli
	 * @param  Pager<SysTradeLog> pager
	 * @return SysTradeLogList
	 * @throws BusinessException
	 */
	public void selectSysTradeLogList(Pager<SysTradeLog> pager) throws BusinessException;
	
	/**
	 * 根据ID查询平台交易记录
	 * @author lunli
	 * @param Long id
	 * @return SysTradeLog
	 * @throws BusinessException
	 */
	public SysTradeLog selectSysTradeLogById(Long id) throws BusinessException;

	/**
	 *  删除平台交易记录
	 * @author lunli	 
	 * @param id
	 * @throws BusinessException
	 */
	public int deleteSysTradeLogById(Long id) throws BusinessException;
	
	/**
	 * 修改平台交易记录
	 * @author lunli
	 * @param sysTradeLog
	 * @throws BusinessException
	 */
	public int updateSysTradeLog(SysTradeLog sysTradeLog) throws BusinessException;

	/**
	 * 新增平台交易记录
	 * @param affactMoney 交易金额
	 * @param logType 交易类型
	 * @param paymentType 收支方向
	 * @param incomeMemberId 收款方
	 * @param outMemberId 付款方
	 * @param logOrder 交易单号
	 * @param logRemark 备注
	 * @return
	 * @throws BusinessException
	 */
	public int createSysTradeLog(BigDecimal affactMoney, String logType, String paymentType, Long incomeMemberId,
								 Long outMemberId, String logOrder, String logRemark) throws BusinessException;

}
